<template>
  <div>
    组件A
    <c-b></c-b>
  </div>
</template>
<script>
import CB from './compB'
import { findBrothersComponents } from '../utils/assist'
export default {
  name: 'comp',
  data(){
    return {
      msg: 'asdsadas'
    }
  },
  created(){
    // console.log(this.$parent.$children, 'his.$parent.$children')
    let a = findBrothersComponents(this, 'comp')
    // console.log(a)
  },
  mounted(){

  },
  components: {
    CB
  },
  methods: {
    thisMethod(){
      window.alert('hello')
    }
  }
};
</script>